MapSource.getTileSizeAtZoom

Gets the apparent size of the map tiles at the given fractional zoom level.

As the map is zoomed in, a tile gets bigger and bigger until, at the next integer zoom level, it "splits" into four tiles at the next zoom level. Thus, the size increase follows an exponential curve, base 2.

class MapSource
double
getTileSizeAtZoom
(
double zoomLevel
)

Parameters

zoomLevel double

a zoom level

Return Value

Type: double

the tile's size (width and height) in pixels for this map source at this zoom level

Meta